<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MyJsp.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  	
  <body>
  
	<c:if test="${result==1}">
	<a href="<%=path%>/uploadfile/selectAll">查看全部信息</a>
  		&nbsp;&nbsp;
  		<form action="<%=path%>/uploadfile/selectfileList" method="post">
  			<input type="text" name="id"/>&nbsp;&nbsp;<input type="submit" value="根据id查询"/>
  		</form>
  		
  		<form action="<%=path%>/uploadfile/selectYnumber" method="post">
  			<input type="text" name="ynumber"/>&nbsp;&nbsp;<input type="submit" value="根据业主标识查询"/>
  		</form>
  		
  		<table border="1" cellpadding="0" cellspacing="0">
  			<tr height="50">
    		<td width="50">id</td>
    		<td width="150">图片</td>
    		<td width="50">姓名</td>
    		<td width="50">性别</td>
    		<td width="50">户主关系</td>
    		<td width="50">联系方式</td>
    		<td width="50">小区名称</td>
    		</tr>
  			<c:forEach var="v" items="${uploadlist}">
  			<tr>
  				<td>
  					${v.yid}
  				</td>
  				<td>
  					<img alt="" src="${v.yfilename}" width="100" height="100">
  				</td>
  				<td>
  					${v.yname}
  				</td>
  				<td>
  					${v.ysex}
  				</td>
  				<td>
  					${v.yowner}
  				</td>
  				<td>
  					${v.yphone}
  				</td>
  				<td>
  					${v.yaddress}
  				</td>
  			</tr>
  			</c:forEach>
  		</table>
  	</c:if>
  	
  	<c:if test="${empty result}">
  		<a href="login.jsp">请登录</a>
  	</c:if>
  </body>
</html>
